/*
 * Copyright (c) 2018-2999 湖南洛云网络科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.dto.SankeyDto;
import com.yami.shop.bean.model.FlowLog;
import com.yami.shop.bean.model.FlowRouteAnalysis;
import com.yami.shop.bean.param.FlowAnalysisParam;
import com.yami.shop.bean.param.FlowRouteAnalysisParam;

import java.util.Date;
import java.util.List;

/**
 * 流量分析—用户路径数据
 *
 * @author YXF
 * @date 2020-07-14 11:26:35
 */
public interface FlowRouteAnalysisService extends IService<FlowRouteAnalysis> {

    /**
     * 统计用户访问路径数据
     * @param flowAnalysisLogList 流量分析日志列表
     * @param startTime 起始时间
     */
    void routeInfo(List<FlowLog> flowAnalysisLogList, Date startTime);

    /**
     * 获取最大创建时间
     * @return 最大创建时间
     */
    Date maxCreateDate();

    /**
     * 获取用户访问路径数据
     * @param flowRouteAnalysisParam
     * @return
     */
    SankeyDto getRoutData(FlowRouteAnalysisParam flowRouteAnalysisParam);
}
